﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NhJump.Persistence.Context
{
    /// <summary>
    /// The unit of work is bound to the current execution context.  This is so that multiple units
    /// of work are not accidentally created
    /// </summary>
    public interface IUnitOfWorkBinder
    {
        UnitOfWork GetCurrent();
        void Bind(UnitOfWork unitOfWork);
        void UnBind();
    }
}
